package com.gite.nouette.admin.implementation.integrator.assembler.module;

import com.gite.nouette.admin.contract.integrator.assembler.module.IAssemblerModuleError;
import com.gite.nouette.admin.contract.integrator.director.module.IDirectorModuleError;
import com.gite.nouette.admin.contract.integrator.factory.IFactoryModel;
import com.gite.nouette.admin.contract.model.IManager;
import com.gite.nouette.admin.contract.model.command.ICommandCreateModule;
import com.gite.nouette.admin.implementation.integrator.assembler.AbstractAssemblerModule;
import com.gite.nouette.admin.implementation.integrator.builder.module.BuilderModuleErrorImpl;
import com.gite.nouette.admin.implementation.integrator.director.module.DirectorModuleErrorImpl;

public class AssemblerModuleErrorImpl extends AbstractAssemblerModule implements
		IAssemblerModuleError {
	private IDirectorModuleError director;

	public AssemblerModuleErrorImpl(IFactoryModel factoryModel,
			IManager manager, ICommandCreateModule commandCreateModule) {
		setDirector(new DirectorModuleErrorImpl());
		getDirector().setBuilder(
				new BuilderModuleErrorImpl(factoryModel, manager,
						commandCreateModule));
	}

	@Override
	public IDirectorModuleError getDirector() {
		return this.director;
	}

	@Override
	public void setDirector(IDirectorModuleError director) {
		this.director = director;
	}

}
